using UnityEngine;

public class Menu : MonoBehaviour 
{
    public string gameTag;
    public string fase;
	
	public Vector3 gameObjectScale;
	private Vector3 startScale;
	
	void Start()
	{
		startScale = gameObject.transform.localScale;
	}
	
    void OnMouseDown()
	{
		if(gameObject.tag == tag)
		{
			Application.LoadLevel(fase);
		}
	}
	
	void OnMouseEnter()
	{
		gameObject.transform.localScale = gameObjectScale;
	}
	
	void OnMouseExit()
	{
		gameObject.transform.localScale = startScale;
	}
}
